package com.shenmazong.servereduresume.controller;

import com.shenmazong.servereduresume.service.TbUserSrwpService;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.BatchChooseIdVo;
import com.shenmazong.vo.ListParamVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 阿瑞
 * @version 1.0
 * @description TODO
 * @class TbUserSrwpController ???
 * @date 2021/9/18 10:21
 */
@RestController
@RequestMapping("userSrwp")
public class TbUserSrwpController {
    @Autowired
    private TbUserSrwpService tbUserSrwpService;
    /**
     * @description 查看自己简历收藏
     * @params [listParamVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author 阿瑞
     * @date 2021/9/18 10:23
     */
    @PostMapping("getMySrwp")
    public ResultResponse getMySrwp(@RequestBody ListParamVo listParamVo){
        return tbUserSrwpService.getMySrwp(listParamVo);
    }
    /**
     * @description 添加收藏
     * @params [batchChooseIdVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author 阿瑞
     * @date 2021/9/18 10:23
     */
    @PostMapping("saveMySrwp")
    public ResultResponse saveMySrwp(@RequestBody BatchChooseIdVo batchChooseIdVo){
        return tbUserSrwpService.saveMySrwp(batchChooseIdVo);
    }
    /**
     * @description 删除收藏
     * @params [batchChooseIdVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author 阿瑞
     * @date 2021/9/18 10:23
     */
    @PostMapping("deleteMySrwp")
    public ResultResponse deleteMySrwp(@RequestBody BatchChooseIdVo batchChooseIdVo){
        return tbUserSrwpService.deleteMySrwp(batchChooseIdVo);
    }
}
